package com.hope.pojo;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//等价于<bean id="user" class="com.hope.dao.User"/>
//@Component 组件

@Component
public class User {

    //相当于  <property name="name" value="蔡江鸿"></property>
    @Value("蔡江鸿")
    public String name;
}
